package com.qbw.app.model;

import androidx.databinding.Bindable;

import java.util.List;

/**
 * @author QBW
 * @date 2019/12/6
 */
public class Weather extends BaseModel {

    private int id;
    private Main main;
    private String name;
    private List<WeatherInfo> weather;

    public int getId() { return id;}

    public void setId(int id) { this.id = id;}

    public Main getMain() { return main;}

    public void setMain(Main main) { this.main = main;}

    public String getName() { return name;}

    public void setName(String name) { this.name = name;}

    public List<WeatherInfo> getWeather() { return weather;}

    public void setWeather(List<WeatherInfo> weather) { this.weather = weather;}

    public static class Main extends BaseModel {
        private double humidity;
        private double pressure;
        private double temp;
        private double temp_max;
        private double temp_min;

        public double getHumidity() { return humidity;}

        public void setHumidity(double humidity) { this.humidity = humidity;}

        public double getPressure() { return pressure;}

        public void setPressure(double pressure) { this.pressure = pressure;}

        @Bindable
        public double getTemp() { return temp;}

        public void setTemp(double temp) { this.temp = temp;}

        public double getTemp_max() { return temp_max;}

        public void setTemp_max(double temp_max) { this.temp_max = temp_max;}

        public double getTemp_min() { return temp_min;}

        public void setTemp_min(double temp_min) { this.temp_min = temp_min;}
    }

    public static class WeatherInfo extends BaseModel {
        private String description;
        private String icon;
        private int id;
        private String main;

        public String getDescription() { return description;}

        public void setDescription(String description) { this.description = description;}

        public String getIcon() { return icon;}

        public void setIcon(String icon) { this.icon = icon;}

        public int getId() { return id;}

        public void setId(int id) { this.id = id;}

        public String getMain() { return main;}

        public void setMain(String main) { this.main = main;}
    }

    public static class Response extends BaseResponse<Weather> {}
}
